﻿//var fs    = require('fs');
var nconf=require('nconf');
var path=require('path');

nconf.argv()
 .env()
 //.file({ file: '/node/chat/config/config.json' }); 
 .file({ file: path.join(__dirname, 'config.json') });
/* 
  nconf.save(function (err) {
    fs.readFile('/node/chat/config/config.json', function (err, data) {
      console.dir(JSON.parse(data.toString()))
    });
  });
*/
module.exports=nconf;